package com.rzx.mybackend.mapstruct;

import com.rzx.mybackend.dto.GamePageDTO;
import com.rzx.mybackend.dto.UserRegisterDTO;
import com.rzx.mybackend.entity.Game;
import com.rzx.mybackend.entity.Role;
import com.rzx.mybackend.entity.User;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * MapStructMapper
 *
 * @author renzhexian
 * @date 2025/7/16
 */
@Mapper
public interface MapStructMapper {

    MapStructMapper INSTANCE = Mappers.getMapper(MapStructMapper.class);

    User mapToUser(UserRegisterDTO userRegisterDTO);

    Role mapToRole(UserRegisterDTO userRegisterDTO);

}
